package com.example;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.example.db.AddCategoryActivity;
import com.example.db.DbHelper;

/**
 * Created with IntelliJ IDEA.
 * User: wlai
 * Date: 12/12/12
 * Time: 7:17 PM
 * To change this template use File | Settings | File Templates.
 */
public class CategoryMgr extends Activity {
    private Button addButton;
    private Button deleteButton;
    private Button editButton;
    DbHelper dbHelper = new DbHelper(CategoryMgr.this);

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.category_mgr);

        addButton = (Button) findViewById(R.id.addButton);
        deleteButton = (Button) findViewById(R.id.deleteButton);
        editButton = (Button) findViewById(R.id.editButton);

        addButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(CategoryMgr.this, AddCategoryActivity.class);
                startActivity(intent);
            }
        });
    }
}